<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>生成地图</title>
<link rel="stylesheet" type="text/css" href="template/admin.css"/>
<script type="text/javascript" src="template/images/jquery.js"></script>
<style type="text/css">
body{margin:20px;}
</style>
<script type="text/javascript">
$(document).ready(function(){

	$('tbody').find('tr').hover(function(){
		//$(this).css('background','#ccc');
	},function(){
		//$(this).css('background','none');
	});
	
});

function all_sl(str){
		$ck=$('#'+str).attr('checked');
		if($ck){
			$('td#'+str).find('input').attr('checked','checked');
		}else{
			$('td#'+str).find('input').attr('checked','');
		}
	}

</script>
</head>

<body>
<div class="div_out">
 <div class="position"><h2>当前位置 > <a href="#">生成网站地图</a></h2></div>
  <div class="lang"><span>当前的语言:</span>
 <?php
 $cache_file=DATA_PATH."cache/lang_cache.php";
 $cache_arr=read_cache($cache_file,'lang_cache');
 if(!empty($cache_arr)){
 foreach($cache_arr as $k=>$v){
  if(!$v['lang_is_use']){continue;}
 ?>
 <a href="?action=map&lang=<?php echo $v['lang_tag'];?>" class="<?php if($GLOBALS['lang']==$v['lang_tag']){echo 'hover'; $lang_name=$v['lang_name'];}?>"><?php echo $v['lang_name'];?></a>
 <?php
 }
 }
 ?>
 
 </div>
</div><!--导航-->
<form name="maininfo" method="post" action="?" class="form">
<div style="width:500px; margin:20px auto">
<input type="hidden" name="action" value="save_map"/><input name="lang" type="hidden" value="<?php echo $lang?>" />
  <input type="submit" value="更新【<?php echo $lang_name;?>】语言网站地图" name="submit" class="go"/>
 </div>
</form>
</body>
</html>
